package com.example.warehouse.bus.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 欧胤
 * @version 1.0
 * @description: 商品退货表实体类
 * @date 2023/6/30 9:32
 */
@Data
@TableName("bus_outport")
public class BusOutport implements Serializable {
    @ExcelProperty(value = "ID",index = 0)
    @TableId(type = IdType.AUTO)
    private Long id;                          // 数据ID

    @ExcelProperty(value = "供应商ID",index = 1)
    private Long providerId;                  // 供应商ID

    @ExcelProperty(value = "商品ID",index = 2)
    private Long goodsId;                     // 商品ID

    @ExcelProperty(value = "支付类型",index = 3)
    private String payType;                   // 支付类型

    @ExcelProperty(value = "退货时间",index = 4)
    private Date outputTime;                  // 退货时间

    @ExcelProperty(value = "退货人",index = 5)
    private String operatePerson;             // 退货人

    @ExcelProperty(value = "退货价格",index = 6)
    private Double outportPrice;              // 退货价格

    @ExcelProperty(value = "退货数量",index = 7)
    private Integer number;                   // 退货数量

    @ExcelProperty(value = "备注",index = 8)
    private String description;               // 备注


    /**
     * 数据创建时间
     */
    @ExcelProperty(value = "数据创建时间",index = 9)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @ExcelProperty(value = "数据最后修改时间",index = 10)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
